
package com.scs.application.modules.upms.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.scs.application.core.model.PageResult;
import com.scs.application.core.mvc.controller.CrudController;
import com.scs.application.modules.upms.entity.LoginLog;
import com.scs.application.modules.upms.request.LoginLogQueryRequest;
import com.scs.application.modules.upms.service.LoginLogService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
* 登录日志 controller
*
*/
@AllArgsConstructor
@RestController
@RequestMapping("/upms/login_logs")
public class LoginLogController extends CrudController<LoginLog,String,LoginLogService>  {


    @GetMapping("/page")
    public PageResult page(LoginLogQueryRequest request) {
        IPage page = service.page(request);
        return PageResult.ok("查询成功", page.getRecords(), page.getTotal());
    }



}
